#!/bin/bash

# 查看系统默认的shell，如果不是bash，就修改为bash
if [ $SHELL != "/bin/bash" ]
then
    echo "Switch to bash, so please enter the password"
    chsh -s /bin/bash
fi

# 把自己的bash配置文件添加到.bashrc中去
echo "source ~/.ly_config/bash/bashrc.sh" >> ~/.bashrc
# 把自己的.vimrc配置，链接到本机中去
ln -s ~/.ly_config/.vimrc ~/.vimrc

echo "Bash Config Success"
